﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Kimd.Communication
{
    public class DatagramReceivedEventArgs<T> : EventArgs
    {
        /// <summary>
        /// 发送信息
        /// </summary>
        public T Datagram { get; set; }
        /// <summary>
        /// 发送信息 ---String类型
        /// </summary>
        public string DatagramStr { get; set; }
        /// <summary>
        /// 接收信息的名称
        /// </summary>
        public string ReceiverName { get; set; }
   
        public DatagramReceivedEventArgs(string _name,string _dataStr,T _data)
        {
            Datagram = _data;
            DatagramStr = _dataStr;
            ReceiverName = _name;
        }
    }
}
